<template>
	<view>
		<img class="cu-avatar xl round margin-top" 
		:src="uinfo&&uinfo.avatar?uinfo.avatar:'/src/static/logo.png'" alt="" />
		<button @click="handleToSetting">编辑资料</button>
		
	</view>
</template>

<script setup lang="ts">
import { computed } from 'vue';
import {useStore} from 'vuex'
const store = useStore()
const handleToSetting=()=>{
	uni.navigateTo({
		url:"/pages/mine/setting"
	})
}
// 提取状态机子模块数据
const uinfo = computed(()=>store.state.user.uinfo)

const login = ()=>{
	uni.navigateTo({
		url:'/pages/account/login'
	})
}
</script>

<style lang="scss">

</style>
